<?php

namespace App\Models\Odr;

use Illuminate\Database\Eloquent\Model;

class Seat extends Model  
{
	protected $table = 'tck_seats';

	protected $guarded = array();

	public $timestamps = false;	

	/**
	 * 座位所属区域
	 * @return [type] [description]
	 */
	public function area()
	{
		return $this->belongsTo(Area::class);
	}


	public function title()
	{
		return $this->area->label.$this->row.'排'.$this->col.'座';
	}

	//现场调试门票打印，去掉无用的显示文字
	public function ptitle()
	{
		return $this->area->label.'　　　'.$this->row.'　　　'.$this->col;
	}
}